package com.niit.mall.api.client;


import com.niit.mall.api.fallback.UserClientFallbackFactory;
import com.niit.mall.common.api.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @BelongsProject: pardo_mall_backend
 * @BelongsPackage: com.niit.mall.api.client
 * @Author: ChuXuan
 * @CreateTime: 2025-06-08  02:44
 * @Description: 用户模块的FeignClient
 * @Version: 1.0
 */
@FeignClient(value = "user-service", fallbackFactory = UserClientFallbackFactory.class)
public interface UserClient {

    @PutMapping("/users/reduceBalance")
    CommonResult<Void> reduceBalance(@RequestParam("totalPrice") Double totalPrice);
}
